package com.blockchain.securewallet.activities;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.blockchain.securewallet.R;
import com.blockchain.securewallet.base.BaseActivity;
import com.blockchain.securewallet.tools.ActivityLauncher;
import com.blockchain.securewallet.utils.ToastUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class FunctionActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_function);
        ButterKnife.bind(this);
        tvTitle.setText(R.string.slide_function);
    }

    @OnClick(R.id.btn_back)
    void back(){
        finish();
    }

    @OnClick(R.id.cv_watch_seed)
    void watchSeed(){
        Intent intent = new Intent();
        intent.setClass(this,WatchSeedActivity.class);
        ToastUtils.showToast("请备份您的种子密码");
        startActivity(intent);
    }

    @OnClick(R.id.cv_reset_wallet)
    void resetWallet(){
        //当前默认显示标题、可返回上一层界面
        ActivityLauncher.gotoWalletInitActivity(this, false);
    }
    
    
}
